<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="m" uri="/cutm_tags"%>
<html>
<head>
<title>新闻编排查询</title>
<link rel="stylesheet"
	href="<s:url value="/common/css/datepicker.css"/>" type="text/css" />
<script type="text/javascript"
	src="<s:url value="/common/script/ui.datepicker.js"/>"></script>
<script type="text/javascript"
	src="<s:url value="/common/script/ui.datepicker-fr.js"/>"></script>
<script type="text/javascript">
$(document).ready(function() {
});
//查询
function search(){
	var pdate = $('input[name=programming.date]').val();
	var pcolumn = $('select[name=programming.column] option:selected').val();
	if(pdate!='' || pcolumn!='') {
		$('#programId').val('');
	}
	$('#serchForm').submit();
}
</script>
</head>
<body>
<h2 class="title"><span>新闻编排导语查询</span></h2>
<s:form id="serchForm" action="programming/SearchProgram!searchDaoYu"
	onsubmit="return true">
	<s:hidden name="programming.id" id="programId" />
	<table id="sTable" class="form">
		<tr>
			<th width="20%">编排日期</th>
			<td width="30%"><m:date name="programming.date" maxDate="0"
				cssClass="rule[required]" /></td>
			<th width="20%">编排栏目</th>
			<td width="30%"><m:select enumType="program.type"
				name="programming.column" cssClass="rule[required]" /></td>
		</tr>
	</table>
</s:form>
<div class="btnGroup"><input value="查询" type="submit"
	onclick="search();"></div>
<h3>导语列表</h3>
<s:form id="editForm" action="programming/EditProgram!editProgram">
	<table class="list">
		<thead>
			<tr>
				<th width="5%">序号</th>
				<th width="5%">记者</th>
				<th width="5%">口播</th>
				<th width="5%">导语</th>
				<th width="5%">编后语</th>
				<th width="20%">标题</th>
				<th width="30%">导语</th>
				<th width="20%">编后语</th>
				<th width="5%">操作</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="progm2GaoJians">
			<s:if test="!manuscript.adv">
				<tr>
					<td><s:property value="order" /></td>
					<td><s:property value="manuscript.user.name" /></td>
					<td><s:property value="kouBoName" /></td>
					<td><s:property value="daoYuName" /></td>
					<td><s:property value="bianHouYuName" /></td>
						<td><s:property value="manuscript.title" /></td>
					<s:if test="kouBo!=null && kouBo!=''">
						<td colspan="2"><s:property value="manuscript.content" /></td>
					</s:if>
					<s:else>
						<td><s:property value="manuscript.daoyu" /></td>
					<td><s:property value="manuscript.bianhouyu" /></td>
					</s:else>
					<td><m:imgA img="view" msg="查看信息"
						action="manuscript/EditManuscript!toEdit?manuscript.id=${manuscript.id}&readOnly=true" /></td>
				</tr>
				</s:if>
			</s:iterator>
		</tbody>
	</table>
	<!-- 
	<div class="buttonGroup" align="center"><input value="保存"
		type="button" onclick="doSub();"></div> -->
</s:form>
</body>
</html>